Skip to main content

mobileStartTrackingSensor

Type

command

Summary

Starts listening for readings from the named sensor.

Syntax

mobileStartTrackingSensor <sensor>, [<loosely>]

Description

Use the mobileStartTrackingSensor command to start listening for readings from a sensor.

The mobileStartTrackingSensor command starts listening for readings from the named sensor.

Parameters

NameTypeDescription

sensor

enum

The name of the sensor you wish to start using

loosely

enum

How accurate the readings from sensors should be. The default value is false

Examples

mobileStartTrackingSensor "location"
mobileStartTrackingSensor "heading",true

command: mobileStopTrackingSensor

function: mobileCanTrackHeading, mobileCanTrackLocation, mobileCurrentHeading, mobileSensorReading, mobileCurrentLocation

message: headingChanged, accelerationChanged, locationChanged, rotationRateChanged, trackingError

Compatibility and Support

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?